Support SwiftSyntax v601 #93
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue/Motivation
SwiftSyntax 601.0.1 is the first version of the library that supports the new preview for prebuilts in SPM. This functionality dramatically improves build times (especially in release configuration) for macro libraries. Now that Mockable 0.4.0 supports SwiftSyntax v601, the path is cleared for this library.
Tasklist
Package.swift
to support SwiftSyntax up to and including v601.MapLibreSwiftUI
in debug/release configurations and benchmark against SwiftSyntax 510.0.3 and 601.0.1.Outcome
MapLibreSwiftUI
builds dramatically faster in both configurations. While it was hard to benchmark builds in Xcode accurately--sinceswift build
will fail--I saw times drop from several minutes to archive down to just a matter of seconds. This is consistent with the results I saw onMockable
with release builds falling from ~140s down to 9s.Caution
MapLibreSwiftUI
won't build against SwiftSyntax 601.0.0 due to a missing marker module that was fixed in 601.0.1.